﻿ 
using SHKF.B2C.BLL;
using SHKF.B2C.MeiTuanShanGou.Model.Entity.Medicine;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Text;
 
 

namespace SHKF.B2C.MeiTuanShanGou.BLL
{
    public class MedicineCatBLL : CenterBLL
    {　
        public MedicineCatBLL(SqlSugarClient db) :
           base(db)
        { 
        }

        public MedicineCatEntity GetDefaultMedicine(long app_poi_code)
        {
            MedicineCatEntity medicineCat = this.db
                .Queryable<MedicineCatEntity>()
                .Where(ww => ww.app_poi_code == app_poi_code)
                .First();

            return medicineCat;
        }
    }

}
